<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝对定位</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .a {
            width: 300px;
            height: 300px;
            background-color: orange;
            position: relative;

            /* position: absolute;
            left: 0;
            bottom: 80px; */
        }
        .suba {
            width: 50px;
            height: 22px;
            background-color: skyblue;
            position: absolute;
            top: 0px;
            right: 0px;
        }
    </style>
</head>
<body>
    <ul>
        <li>如果父级没有定位（relative、absolute、fix）则以浏览器对齐</li>
        <li>父级有定位则以最近一层的父级为准</li>
        <li>脱标，不再占有原来的位置</li>
    </ul>
    <div class="a">
        <div class="suba"></div>
    </div>
</body>
</html>